function getValueByKey(destKey,ValueListKey,valueList){
  if(Array.isArray(valueList)){
      return valueList.filter(item=>{
          return item[ValueListKey]===destKey
      })
  }else{
      console.error("valueList必须为数组类型")
      return []
  }
}
function isDef(value){
  return value!==null&&value!==undefined
}

module.exports={
  getValueByKey,
  isDef
}
